/*
 * User.h
 *
 *  Created on: 26/06/2014
 *      Author: Vitor
 */

#ifndef USER_H_
#define USER_H_

#include <string>
#include "Serializable.h"

class User: public Serializable<User> {
	friend class Serializable<User> ;
private:
	std::string username;
	std::string password;

	ByteQueue serialize_impl();
	static User deserialize_impl(ByteQueue& bytes);

public:
	User(std::string username, std::string password);
	virtual ~User();
	std::string get_name();
	std::string get_password();
};

#endif /* USER_H_ */
